

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_Adduser.aspx.cs" Inherits="Admin_Ad_Adduser" %>

<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>

<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>

<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Add New User</title>
        <link href="include\styles.css" rel="stylesheet" />
        
    <script src="../JScript/gen_validatorv2.js">
    </script>
   
</head>
<body>
  
  <form id="Adduser" runat="server">
    <div>
    
    <table width="100%"  border="0" cellspacing="0" cellpadding="0" id="TABLE1" onclick="return TABLE1_onclick()">

	<!-- Masthead starts from here-->
	
	<uc1:Ad_header ID="Ad_header1" runat="server" />
	
	<!-- Masthead ends here-->
	
  <tr>
    <td></td>
    <td style="width: 953px"><table width="716" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" valign="top">
		
		<!-- Left panel starts from here-->
		
		<uc2:Ad_left ID="Ad_left1" runat="server" />
		
		<!-- Left panel ends from here-->
		</td>
        <td width="15" valign="top"><img src="../images/spacer.gif" width="15" height="1" /></td>
        <td width="551" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tblborder">
          <tr>
            <td width="2%" height="35"></td>
            <td width="96%" class="normalblack_12" align="center" ><b>
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            </b></td>
            <td width="2%"></td>
          </tr>
          <tr>
            <td height="15"></td>
            <td align="center" class="normalblack_12">
                <asp:Label ID="Label2" runat="server" Text="Label" ForeColor="Green" Visible="False"></asp:Label></td>
            <td></td>
          </tr>
          <tr>
            <td height="200"></td>
            <td valign="top" class="normalblack_12" align="center"> 
            
                     <table width="80%" align="center" class="normalgrey_12">
    <tr>
    <td align="right">
        First Name
    </td>
    <td style="width: 12px">:</td>
    <td>
        <asp:TextBox ID="txtfirstname" runat="server" MaxLength="100"></asp:TextBox>
        <span style="color: red">*</span></td>
    </tr>
        <tr>
            <td align="right">
                Middle Name</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtmiddlename" runat="server" MaxLength="100"></asp:TextBox>
                &nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td align="right">
                Last Name</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtlastname" runat="server" MaxLength="100"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
        <tr>
            <td align="right">
                Email</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtemail" runat="server" MaxLength="100"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
                         <tr>
                             <td align="right">
                                 Birth Year</td>
                             <td style="width: 12px">
                                 :</td>
                             <td align="left" >
                                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                 <asp:DropDownList ID="ddlBirthYear" runat="server" ></asp:DropDownList>
                                 <!--//Change 04/24/2006 - Birth date changed to birth year
                                 <asp:TextBox ID="txtbirthdate" runat="server" MaxLength="100" Width="114px" Enabled="False"></asp:TextBox>
                                 <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.Adduser.txtbirthdate);return false;" HIDEFOCUS><img class="PopcalTrigger" align="absmiddle" src="../Images/calbtn.gif" width="34" height="22" border="0" alt=""/></a> -->

                                 <span style="color: red">*<br />
                                     </span></td>
                         </tr>
                         <tr>
                             <td align="right">
                                 Gender</td>
                             <td style="width: 12px">
                                 :</td>
                             <td>
                                 <asp:DropDownList ID="combogender" runat="server" Width="158px" ToolTip="Select Gender">
                                     <asp:ListItem Value="M">Male</asp:ListItem>
                                     <asp:ListItem Value="F">Female</asp:ListItem>
                                 </asp:DropDownList><span style="color: red">*</span></td>
                         </tr>
        <tr>
            <td align="right">
                Password</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtpswd" runat="server" MaxLength="15"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
        <tr>
            <td align="right">
                Confirm Password</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtconfirmpswd" runat="server" MaxLength="15"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
        <tr>
            <td align="right">
                Address1</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtaddress1" runat="server" MaxLength="100"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
        <tr>
            <td align="right">
                Address2</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtaddress2" runat="server" MaxLength="100"></asp:TextBox>
                &nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td align="right">
                City</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtcity" runat="server" MaxLength="50"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
        <tr>
            <td align="right">
                Zip Code</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtzipcode" runat="server" MaxLength="10"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
        <tr>
            <td align="right">
                State</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:TextBox ID="txtstate" runat="server" MaxLength="50"></asp:TextBox>
                <span style="color: red">*</span></td>
        </tr>
        <tr>
            <td align="right">
                Country&nbsp;</td>
            <td style="width: 12px">
                :</td>
            <td>
                <asp:DropDownList ID="combocountryid" runat="server" Width="159px">
                </asp:DropDownList>
                <span style="color: red">*</span></td>
        </tr>
        
        
        <tr>
            <td align="right">
                Health Care Plan</td>
            <td style="width: 12px">
                :</td>
            <td>
                &nbsp;<asp:DropDownList ID="combohealthplan" runat="server" Width="159px">
                </asp:DropDownList><span style="color: red">*</span>
                </td>
        </tr>
                         <tr>
                             <td align="right">
                                 Secret Question</td>
                             <td style="width: 12px">
                                 :</td>
                             <td>
                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                 <asp:DropDownList ID="combosecretquestion" runat="server" Width="196px">
                                 </asp:DropDownList><span style="color: red">*</span></td>
                         </tr>
                         <tr>
                             <td align="right">
                                 Secret Answer</td>
                             <td style="width: 12px">
                                 :</td>
                             <td>
                                 <asp:TextBox ID="txtsecretanswer" runat="server" MaxLength="50"></asp:TextBox><span style="color: red">*</span></td>
                         </tr>
                         <tr>
                             <td align="right">
                                 Nick&nbsp; Name</td>
                             <td style="width: 12px">
                                 :</td>
                             <td>
                                 <asp:TextBox ID="txtnickname" runat="server" MaxLength="50"></asp:TextBox><span style="color: red">*</span></td>
                         </tr>
                         <tr>
                             <td align="right">
                             </td>
                             <td style="width: 12px">
                             </td>
                             <td>
                             </td>
                         </tr>
        <tr>
            <td align="right">
            </td>
            <td style="width: 12px">
            </td>
            <td>
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                &nbsp;&nbsp;
                <asp:Button ID="Button2" runat="server" Text="Cancel" CausesValidation="False" OnClick="Button2_Click" /></td>
        </tr>
    </table>
            
            </td>
            <td></td>
          </tr>
          <tr>
            <td height="20"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3" style="height: 30px"></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC" style="width: 953px"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
    <td height="20" colspan="3"></td>
  </tr>
  
	<!-- Bottom starts from here-->
	
    <uc3:Ad_footer ID="Ad_footer1" runat="server" />
	
	<!-- Bottom ends here-->
	
</table>

    
    
   
    </div>
    </form>
    <iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="../JScript/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
    <script>
		//You should create the validator only after the definition of the HTML form
        

	     var frmvalidator  = new Validator("Adduser","btnSubmit");
	     
	    frmvalidator.addValidation("txtfirstname","req","Please Enter First Name.");	
	    frmvalidator.addValidation("txtlastname","req","Please Enter Last Name.");	
	    frmvalidator.addValidation("txtemail","req","Please Enter Email.");	
	    frmvalidator.addValidation("txtpswd","req","Please Enter password.");	
	    frmvalidator.addValidation("txtconfirmpswd","req","Please Enter confirm password.");	
	    
	    
	    frmvalidator.addValidation("txtconfirmpswd","compare","txtpswd|Passwords not matched.");
	    //Change 04/24/2006 - Address Not mandatory, birthdate changed to birth year
	     //frmvalidator.addValidation("<%=txtbirthdate.ClientID %>","req","Please Enter Birth date.");
	     //frmvalidator.addValidation("<%=txtaddress1.ClientID %>","req","Please Enter your address.");	
	     //frmvalidator.addValidation("<%=txtcity.ClientID %>","req","Please Enter your City.");	
	     //End Change 04/24/2006
	    frmvalidator.addValidation("<%=ddlBirthYear.ClientID %>","dontselect=0","Please select birth year.");
	    //frmvalidator.addValidation("txtTitle","req","Please Enter title.");	
	    frmvalidator.addValidation("txtaddress1","req","Please Enter Address1.");	
	    frmvalidator.addValidation("txtcity","req","Please Enter city.");	
	    frmvalidator.addValidation("txtstate","req","Please Enter state.");	
	    frmvalidator.addValidation("txtzipcode","req","Please Enter zip code.");
	    //frmvalidator.addValidation("txtbirthdate","req","Please Enter Birth date.");
	    frmvalidator.addValidation("combogender","dontselect=0","Please Select Gender");
	    frmvalidator.addValidation("combohealthplan","dontselect=0","Please Select Health Care Plan.");
    	
	    frmvalidator.addValidation("txtaddress1","maxlength=100","Address Maximum Length is Only 100 Characters");	
	    frmvalidator.addValidation("txtaddress2","maxlength=100","Address Maximum Length is Only 100 Characters");		
	    frmvalidator.addValidation("combocountryid","dontselect=0","Please Select Country");
	    frmvalidator.addValidation("combosecretquestion","dontselect=0","Please Select Secret Question");
	    frmvalidator.addValidation("txtsecretanswer","req","Please Enter your Secret Answer.");
	    frmvalidator.addValidation("txtnickname","req","Please Enter your Nick Name");
    	
        frmvalidator.addValidation("txtcity","alpha","Please enter Correct City Name.");
	    //frmvalidator.addValidation("txtState","alpha","Please enter Correct Contact Name.");
	    //frmvalidator.addValidation("txtPhone","phone","Please Enter Correct Telephone Number");		
	    frmvalidator.addValidation("txtemail","email");	
function TABLE1_onclick() {

}

    </script>

</body>
</html>
